from selenium import webdriver
from selenium.webdriver.common.by import By

from base.base import Base

input_box = (By.XPATH, "//*[@name='wd']")
click_button = (By.XPATH, "//*[@id='su']")


class Page(Base):
    def page_input_text(self, value):
        self.base_input(input_box, value)

    def page_click(self):
        self.base_click(click_button)

    def page_search(self,text):
        self.page_input_text(text)
        self.page_click()

